import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class MyTitle extends StatelessWidget {
  MyTitle({this.title,this.color});
  final String title;
  final Color color;

  @override
  Widget build(BuildContext context) {
    return Container(
      child:   Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Container(
            width: 100.w,
            height: 1.w,
            color: color,
          ),
          SizedBox(
            width: 15.w,
          ),
          Transform.rotate(
            angle: pi / 4,
            child: Container(
              width: 15.w,
              height: 15.w,
              color: color,
            ),
          ),
          SizedBox(
            width: 45.w,
          ),
          Text('${title}'),
          SizedBox(
            width: 45.w,
          ),
          Transform.rotate(
            angle: pi / 4,
            child: Container(
              width: 15.w,
              height: 15.w,
              color: color,
            ),
          ),
          SizedBox(
            width: 15.w,
          ),
          Container(
            width: 100.w,
            height: 1.w,
            color: color,
          ),
        ],
      ),
    );
  }
}
